# Variables
PKNAME=iRoomMonitor_ES_API.jar
MYSQLJDBC=mysql-connector-java-5.1.13-bin.jar
SRC=iRoomMonitor

# Create package
package:
	@echo "Generating iRoomMonitor ES API package:"
	@echo "1. Compiling package into java bytecode"
	@javac ${SRC}/*.java
	@echo "2. Copying MySQL Connector/J (JDBC driver) jar"
	@cp ${MYSQLJDBC} ${PKNAME}
	@echo "3. Updating iRoomNanny with java bytecode"
	@jar uvf ${PKNAME} ./${SRC}/*.class
	@echo "Package generation finished"

javadoc:
	javadoc iRoomMonitor/*.java
	javadoc UseTest.java -d ./UseTest/
